﻿<?xml version="1.0" encoding="utf-8"?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Survey.Entity" assembly="Survey.Entity">
    <class name="CodeListSmall" table="CodeList" lazy="true">
        <cache usage="read-write" region="ShortTerm"/>
        <id name="ID" column="CodeListId">
            <generator class="assigned"></generator>
        </id>

        <discriminator column="Discriminator"></discriminator>

        <property not-null="true" name="Code" />
        <property not-null="true" name="Name" />
        <property not-null="true" name="IsVisible" />

        <!--<subclass name="Currency" discriminator-value="Currency" />-->

    </class>
</hibernate-mapping>